import { axios } from "@/services/axios";

const TimeSerial = {
  get: data => axios.get(`api/timeserial/${data.id}`),
  gettree: timeserialstatus_enum => axios.get(`api/timeserial/tree/${timeserialstatus_enum}`),
  query: (parent_id,timestruct_id) => axios.get(`api/timeserial/${parent_id}/${timestruct_id}`),
  create: data => axios.post("api/timeserial", data),
  save: data => axios.post(`api/timeserial/${data.id}`, data),
  delete: data => axios.delete(`api/timeserial/${data.id}`),
};

export default TimeSerial;


